import {$get,$post} from './http'

//活动
export const $activity=async(params:object)=>{
    return await $get('./promotion/activity',params)
}
export const $getStatus=async(params:object)=>{
    return await $get('./promotion/getStatus',params)
}
export const $getBalance=async(params:object)=>{
    return await $get('./promotion/getBalance',params)
}
export const $getActInfo=async(params:object)=>{
    return await $get('./promotion/getActInfo',params)
}
export const $mediaRecommend=async(params:object)=>{
    return await $get('./promotion/mediaRecommend',params)
}
export const $updateAct=async(params:object)=>{
    return await $post('./promotion/updateAct',params)
}

//报表
export const $mediaReport=async(params:object)=>{
    return await $get('./promotion/mediaReport',params)
}
export const $overview=async(params:object)=>{
    return await $get('./promotion/overview',params)
}

export const $rechargeRecord=async(params:object)=>{
    return await $get('./promotion/rechargeRecord',params)
}
export const $recharge=async(params:object)=>{
    return await $post('./promotion/recharge',params)
}
export const $bill=async(params:object)=>{
    return await $get('./promotion/bill',params)
}
export const $billDetails=async(params:object)=>{
    return await $get('./promotion/bill/details',params)
}
// function login(data?:object){
//     return axios.post('./user/login/',data);
// }

// function register(data:unknown){
//     return axios.post('./user/register/',data);
// }




